

    <div class="container-fluid">
        <div id="pad-wrapper" class="users-list">
            <div class="row-fluid header">
                <h3>Users</h3>
                <div class="span10 pull-right">
                    <input type="text" class="span5 search" placeholder="Type a user's name..." />

                    <!-- custom popup filter -->
                    <!-- styles are located in css/elements.css -->
                    <!-- script that enables this dropdown is located in js/theme.js -->
                    <div class="ui-dropdown">
                        <div class="head" data-toggle="tooltip" title="Click me!">
                            Filter users
                            <i class="arrow-down"></i>
                        </div>
                        <div class="dialog">
                            <div class="pointer">
                                <div class="arrow"></div>
                                <div class="arrow_border"></div>
                            </div>
                            <div class="body">
                                <p class="title">
                                    Show users where:
                                </p>
                                <div class="form">
                                    <select>
                                        <option />Name
                                        <option />Email
                                        <option />Number of orders
                                        <option />Signed up
                                        <option />Last seen
                                    </select>
                                    <select>
                                        <option />is equal to
                                        <option />is not equal to
                                        <option />is greater than
                                        <option />starts with
                                        <option />contains
                                    </select>
                                    <input type="text" />
                                    <a class="btn-flat small">Add filter</a>
                                </div>
                            </div>
                        </div>
                    </div>

                    <a href="<?=\yii\helpers\Url::to(['manage/addmanager'])?>" class="btn-flat success pull-right">
                        <span>&#43;</span>
                        NEW USER
                    </a>
                </div>
            </div>

            <!-- Users table -->
            <div class="row-fluid table">
                <table class="table table-hover">
                    <thead>
                    <tr>
                        <th class="span4 sortable">
                           姓名
                        </th>
                        <th class="span3 sortable">
                            <span class="line"></span>登录时间
                        </th>
                        <th class="span2 sortable">
                            <span class="line"></span>登录ip
                        </th>
                        <th class="span3 sortable">
                            <span class="line"></span>Email
                        </th>
                        <th class="span3 sortable "align="centre">
                            <span class="line"></span>操作
                        </th>
                    </tr>
                    </thead>
                    <tbody>
                    <?php foreach ($manager as $val){?>
                    <!-- row -->
                    <tr>
                        <td>
                            <img src="img/contact-img2.png" class="img-circle avatar hidden-phone" />
                            <a href="user-profile.html" class="name"><?=$val['adminuser']?></a>
                            <span class="subtext">Graphic Design</span>
                        </td>
                        <td>
                            <?= date("Y-m-d h:i:s",$val['logintime']);?>
                        </td>
                        <td>
                            <?= long2ip($val['loginip']);?>
                        </td>
                        <td class="">
                            <a href="#"><?=$val['adminemail']?></a>
                        </td>
                        <td class="-align-center">
                            <div class="bs-example" data-example-id="button-tag-button-group-justified">
                                <div class="btn-group btn-group-justified" role="group" aria-label="Justified button group">
                                    <div class="btn-group" role="group">
                                        <button type="button"  class="btn btn-default">编辑</button>
                                    </div>
                                    <div class="btn-group" role="group">
                                        <button type="button" class="btn btn-default">管理</button>
                                    </div>
                                    <div class="btn-group" role="group">
                                        <a class="btn-primary btn" href="<?php echo\yii\helpers\Url::to(['manage/del','adminid'=>$val->adminid]); ?>" class="btn btn-default">删除</a>
                                    </div>
                                </div>
                            </div>
                        </td>
                    </tr>
                    <?php } ?>

                    <?php
                    if(Yii::$app->session->hasFlash('info'))
                    {
                        echo Yii::$app->session->getFlash('info');
                    }
                    ?>

                    </tbody>
                </table>
            </div>
            <div class="pagination pull-right">
<?= \yii\widgets\LinkPager::widget(['pagination'=>$page,'prevPageLabel'=>'&#8249;','nextPageLabel'=>'&#8250;','firstPageLabel'=>true])?>
            </div>
            <!-- end users table -->
        </div>
    </div>

<!-- end main container -->
